// Copyright (C) 2011  Andrew H. Chan
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

#include "basic_includes.h"
#include "typedefs.h"
#include "util.h"
#include "input_data.h"
#include "buneman.h"

using namespace std;

int main(int argc, char* argv[]) {
    if(argc < 2) {
        cout << "\nusage: steiner data_file" << endl;
        return 1;
    }
    string data_file = argv[1];
    Input_data in_data;
    if(in_data.read_input(data_file)) {
        return 1;
    }
    Buneman buneman(in_data);
    buneman.execute();
    return 0;
}
